﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using RecruitStudents.Utility;

namespace RecruitStudents.Client.WS
{
    /// <summary>
    /// ConsultService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
    // [System.Web.Script.Services.ScriptService]
    public class ConsultService : WS.Helper.BaseServiceHelper
    {
        #region 获取 待回复问题列表
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>待回复问题列表 DataTable</i></b>
            <br><font color='blue'>string</font> strSignUpID:考生主键
            <br><font color='blue'>string</font> strIsTop:是否置顶
            <br><font color='blue'>string</font> strIsFee:是否缴费
            <br><font color='blue'>string</font> strIsStudent:是否学生
            <br><font color='blue'>string</font> strConsultResorce:资源类别")]
        public string GetWaitResponseProblemTable(string strSignUpID, string strIsTop, string strIsStudent, string strIsFee, string strConsultResorce)
        {
            return ServiceConsult.GetWaitResponseProblemTable(strSignUpID, strIsTop, strIsStudent, strIsFee, strConsultResorce).ToJson();
        }
        #endregion

        #region 获取 已回复问题列表
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>已回复问题列表 DataTable</i></b>
            <br><font color='blue'>string</font> strSignUpID:考生主键
            <br><font color='blue'>string</font> strIsTop:是否置顶
            <br><font color='blue'>string</font> strIsFee:是否缴费
            <br><font color='blue'>string</font> strIsStudent:是否学生
            <br><font color='blue'>string</font> strConsultResorce:资源类别
            <br><font color='blue'>string</font> strConsultTitle:标题
            <br><font color='blue'>string</font> strUsersNickName:姓名")]
        public string GetRepliedProblemTable(string strSignUpID, string strIsTop, string strIsFee, string strIsStudent,
            string strConsultResorce, string strConsultTitle, string strUsersNickName)
        {
            return ServiceConsult.GetRepliedProblemTable(strSignUpID, strIsTop, strIsFee, strIsStudent, strConsultResorce, strConsultTitle, strUsersNickName).ToJson();
        }

        #endregion

        #region 获取 回复区展示
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>回复区展示 DataTable</i></b>
            <br><font color='blue'>string</font> strTopicID:主键")]
        public string GetReplyAreaShow(string strTopicID)
        {
            return ServiceConsult.GetReplyAreaShow(strTopicID).ToJson();
        }
        #endregion


        #region 保存咨询互动回复表 更新咨询互动标题表
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>保存咨询互动回复表，更新咨询互动标题表 JsonMessage</i></b>
            <br><font color='blue'>string</font> strMsgID:主键
            <br><font color='blue'>string</font> strRichSend:回复内容
            <br><font color='blue'>string</font> strUserName:姓名
            <br><font color='blue'>string</font> strSend:提问内容
            <br><font color='blue'>string</font> strUserID:用户ID
            <br><font color='blue'>string</font> strZX:类别")]
        public string SaveConsultReply_UpdateConsultTitle(string strMsgID, string strRichSend, string strUserName, 
            string strSend, string strUserID, string strZX)
        {
            return ServiceConsult.SaveConsultReply_UpdateConsultTitle(strMsgID, strRichSend, strUserName, strSend, strUserID, strZX).ToJson();
        }
        #endregion

        #region  设置不公开
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>修改数据是否公开 JsonMessage</i></b>
            <br><font color='blue'>string</font> strMsgID:主键
            <br><font color='blue'>string</font> strIsTop:公开，1或0")]
        public string UpdateIsPublic(string strMsgID, string strIsPublic)
        {
            return ServiceConsult.UpdateIsPublic(strMsgID, strIsPublic).ToJson();
        }
        #endregion

        #region  删除咨询互动列表
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>删除数据 JsonMessage</i></b>")]
        public string DeleteConsultTitle(string strMsgID)
        {
            return ServiceConsult.DeleteConsultTitle(strMsgID).ToJson();
        }
        #endregion

        #region  设置置顶
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>修改数据是否置顶 JsonMessage</i></b>
            <br><font color='blue'>string</font> strMsgID:主键
            <br><font color='blue'>string</font> strIsTop:置顶，1或0")]
        public string UpdateIsTop(string strMsgID, string strIsTop)
        {
            return ServiceConsult.UpdateIsTop(strMsgID, strIsTop).ToJson();
        }
        #endregion

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>根据主键ID获取讨论区数据 DataTble数据列表</i></b>
            <br><font color='blue'>string</font> strID:主键")]
        public string GetConsultTitleByID(string strID)
        {
            return ServiceConsult.GetConsultTitleByID(strID).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>查询咨询互动列表 DataTble数据列表</i></b>
            <br><font color='blue'>string</font> strName:名称")]
        public string GetDicMsgTypeTable(string strName)
        {
            return ServiceConsult.GetDicMsgTypeTable(strName).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>查询咨询互动实体 Model</i></b>
            <br><font color='blue'>string</font> strConsultTypeID:主键")]
        public string GetDicMsgTypeModel(string strConsultTypeID)
        {
            return ServiceConsult.GetDicMsgTypeModel(strConsultTypeID).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>保存咨询互动 JsonMessage</i></b>
            <br><font color='blue'>string</font> strJson:TB_ConsultType")]
        public string SaveDicMsgType(string strJson)
        {
            return ServiceConsult.SaveDicMsgType(strJson).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>获取通知列表 DataTable</i></b>
            <br><font color='blue'>string</font> strSignUpID:考生号ID")]
        public string GetNoticeTable(string strSignUpID)
        {
            return ServiceConsult.GetNoticeTable(strSignUpID).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>保存通知列表 JsonMessage</i></b>
            <br><font color='blue'>string</font> strJson:TB_Notice List")]
        public string SaveNoticeList(string strJson)
        {
            return ServiceConsult.SaveNoticeList(strJson).ToJson();
        }
    }
}
